Page({
  data: {
      array: [ {
          src: "./images/IDcardcha.png",
          text: "手机号查询",
          url: "/pages/tools/address/addcha?ocr_type=1"
      }, {
          src: "./images/bancardcha.png",
          text: "身份证查询",
          url: "/pages/tools/address/addcha?ocr_type=2"
      }, {
          src: "./images/ipcha.png",
          text: "银行卡查询",
          url: "/pages/tools/address/addcha?ocr_type=3"
      }, {
          src: "./images/ipipcha.png",
          text: "IP查询",
          url: "/pages/tools/address/addcha?ocr_type=4"
      } ]
  },
  onLoad: function() {},
  topages: function(a) {
      var e = a.currentTarget.dataset.pagesurl;
      console.log(e), wx.navigateTo({
          url: e,
          success: function() {}
      });
  },
  onShareAppMessage: function(a) {
      var e = {
          title: "给你分享一个归属地查询的好工具",
          imageUrl: "http://file.scjrh.net/hammer/tools.png",
          success: function(a) {
              a.errMsg;
          },
          fail: function() {
              "shareAppMessage:fail cancel" == res.errMsg || res.errMsg;
          }
      };
      return a.from, e;
  },
  onShareTimeline: function() {
      return {
          title: "给大家推荐一个归属地查询工具：锤子工具人。",
          imageUrl: "http://file.scjrh.net/hammer/logo.png"
      };
  }
});